package com.gc.server.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import com.gc.server.entity.NoticeEntity;
import com.gc.server.vo.NoticeVo;

                    
/**
 * 公告实体
 * 表名 notice
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Oct 22 09:22:03 CST 2020
 */
@Data
public class NoticeDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //标题
            @ExcelProperty("标题")
            private String title;
        
                        //内容
            @ExcelProperty("内容")
            private String content;
        
                        //可见级别
            @ExcelProperty("可见级别")
            private Long levelId;
        
                        //创建时间
            @ExcelProperty("创建时间")
            private Date time;
        
    
    public NoticeDown() {

    }

    public NoticeDown(NoticeVo vo) {
        NoticeEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setTitle(entity.getTitle());
            
                                    this.setContent(entity.getContent());
            
                                    this.setLevelId(entity.getLevelId());
            
                                    this.setTime(entity.getTime());
            
            }


}
